package com.tuanzi.loan.business.entity.family;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;
import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import com.tuanzi.loan.business.validation.annotation.family.ProductInfoBusinessValidation;
import com.tuanzi.loan.core.entity.AuditEntity;

import lombok.Builder.Default;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Ray 2017/10/14
 */
@Data
@Entity
@Table(name = "comm_sys_code")
public class CommSysCode implements Serializable {

	private static final long serialVersionUID = 2538544627440717868L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@Column(name = "type")
	private String type;

	@Column(name = "name")
	private String name;

	@Column(name = "kind")
	private String kind;

	@Column(name = "code")
	private Integer code;

	@Column(name = "kindname")
	private String kindname;

	@Column(name = "data1")
	private String data1;

	@Column(name = "data1name")
	private String data1name;

	@Column(name = "data2")
	private String data2;

	@Column(name = "data2name")
	private String data2name;

	@Column(name = "memo")
	private String memo;

	@Column(name = "orderby")
	private Integer orderby;

	@Column(name = "createtime")
	private Date createtime;

	@Column(name = "creator")
	private String creator;

	@Column(name = "lasttime")
	private Date lasttime;

	@Column(name = "lasteditor")
	private String lasteditor;

}
